<template>
  <p>当前计数: {{ counter }}</p>
</template>

<script setup>
import { useCounterStore } from "@/stores/counter";
import { storeToRefs } from "pinia";

const store = useCounterStore();

const { counter } = storeToRefs(store);
</script>
